/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.pretorius.question4.adpViolation.model.deviceManager;

import za.ac.cput.pretorius.question4.adpViolation.model.monitorPlatform.MonitorPlatform;

/**
 *
 * @author griddy
 */
public class USB {
    
    private MonitorPlatform monitorPlatform = new MonitorPlatform();
    
    public void displayState() /*Cycle Created*/
    {
        if(state == true)
            monitorPlatform.logActivityToRecord("USB Device Connected");
         
        else
            monitorPlatform.logActivityToRecord("USB Device Disconnected");
    }

    public USB(boolean state, String id) {
        this.state = state;
        this.id = id;
    }
    
    private boolean state;
    private String id; 
    
    public void changeState()
    {
        if(state)
            state = false;
        else
            state = true;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public boolean getState() {
        return state;
    }

    public void setState(boolean state) {
        this.state = state;
    } 
    
}
